package com.freestyle.nettychat.chat.service;


import com.freestyle.nettychat.chat.dto.AttachmentMessage;
import com.freestyle.nettychat.chat.dto.ChatMessage;
import com.freestyle.nettychat.session.service.SessionService;

import java.util.List;

/**
 * Created by rocklee on 2022/2/4 21:40
 */
public interface ChatService {
  void setSessionService(SessionService sessionService);
  void sendMessage(ChatMessage chatMessage);
  List<ChatMessage> recvChatRoomMessage(String chatRoom, double min, double max, int limit);
  AttachmentMessage recvAttachment(String attachmentId);
  void clearOldChatLog(int keepDays);
  void removeChatRoomLog(String chatRoom);
}
